import requests
import json


def get_token(account):
    url = f"https://api.bi.tayun365.com/ext/ks/token?account={account}"
    payload = {}
    headers = {
        'TOKEN': '9pDitb06b3NysTFtwc3Ym2x5zmefluy9',
    }
    response = requests.request("GET", url, headers=headers, data=payload)
    token = response.json()["data"]["access_token"]
    return token

kMongdbUri = 'mongodb://root:Zhangte7941!@s-bp109db25f0577c4-pub.mongodb.rds.aliyuncs.com:3717,s-bp1d0264550e3454-pub.mongodb.rds.aliyuncs.com:3717/admin'
